.app {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 40px 20px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-text {
  text-align: center;
  flex: 1;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.app-header p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #495057;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.app-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capture-section {
  margin-bottom: 20px;
}

.capture-section .card {
  text-align: center;
}

.capture-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #333;
}

.capture-section p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.capture-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.capture-btn {
  font-size: 16px;
  padding: 14px 24px;
  min-width: 160px;
  border-radius: 8px;
}

.capture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.history-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.empty-state {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 40px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.screenshot-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-preview {
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}

.screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.screenshot-preview:hover img {
  transform: scale(1.05);
}

.screenshot-info {
  padding: 16px;
}

.filename {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
}

.timestamp {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.screenshot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.screenshot-actions button {
  font-size: 11px;
  padding: 6px 8px;
  white-space: nowrap;
}

.delete-btn {
  background: #fff5f5 !important;
  color: #e53e3e !important;
  border-color: #fed7d7 !important;
}

.delete-btn:hover {
  background: #fed7d7 !important;
}

.app-footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-header h1 {
    font-size: 2rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .settings-btn {
    order: -1;
    align-self: flex-end;
  }
  
  .app-main {
    padding: 16px;
  }
  
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  
  .capture-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .capture-btn {
    width: 100%;
    max-width: 280px;
  }

  .screenshot-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .screenshot-actions button {
    font-size: 12px;
    padding: 8px 12px;
  }
}